﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;

namespace CoreSystem
{
    public class SysMenuSeparator:SysBaseMenuItem
    {
        protected ToolStripSeparator _menuitem;       
        // Methods
        public SysMenuSeparator()
        {
            _menuitem = new  ToolStripSeparator();
        }

        public SysMenuSeparator(string _Menu_Id, string _Name_Menu, string _Caption, string _Description, int _Level_Menu, string _Parents, bool _Enable, bool _Visible, string _Icon_File, string _Short_Cut, string _Module_Name, string _Not_In_Module)
            :base( _Menu_Id,  _Name_Menu,  _Caption,  _Description,  _Level_Menu,  _Parents,  _Enable,  _Visible,  _Icon_File,  _Short_Cut,  _Module_Name, _Not_In_Module)
        {            
            _menuitem = new  ToolStripSeparator();             
        }

        public ToolStripSeparator SysMenuItem
        {
            get 
            {                
                _menuitem.Name = _Name_Menu;
                _menuitem.Text = _Caption;
                _menuitem.Enabled = _Enable;
                _menuitem.Visible = _Visible;                
                return _menuitem;
            }
        }
        public override object MenuDropDownItem
        {
            get
            {
                return (object)SysMenuItem;
            }
        } 
    }
}
